package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 附件表
 *
 * @author song
 * @since 2019-12-28
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PubAttachment对象", description="附件表")
public class PubAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "附件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "存储地址")
    @TableField("file_url")
    private String fileUrl;

    @ApiModelProperty(value = "文件大小 单位字节")
    @TableField("file_size")
    private Long fileSize;

    @ApiModelProperty(value = "文件分类（字典表）")
    @TableField("file_category")
    private Integer fileCategory;

    @ApiModelProperty(value = "文件base64编码")
    @TableField("file_base")
    private String fileBase;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private String createUserId;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;


}
